

<!DOCTYPE html>
<html>

<head>
  <meta charset="UTF-8">
  <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>文章目录高亮当前章节</title>
  <style>
    * {
      margin: 0;
      padding: 0;
    }
    ul {
      display: block;
    list-style-type: disc;
    -webkit-margin-before: 1em;
    -webkit-margin-after: 1em;
    -webkit-margin-start: 0px;
    -webkit-margin-end: 0px;
    -webkit-padding-start: 40px;
    }
    li { list-style: circle; }
    a { text-decoration: none; color: #655 }
    h1, h2, h3, h4, h5, h6 {
      margin: 30px 0 10px;
    }
    .placeholder {
      height: 300px;
      background-color: lightgoldenrodyellow;
      text-align: center;
    }
    .post-toc-content {
      position: fixed;
      right: 100px;
      top: 100px;
      background: lightblue;
      padding: 10px;

    width: 300px;
    height: 300px;
    }
    .post-toc-content li {
      line-height: 1.8;
      list-style: none;
    }
    .post-toc-content .active a {
      color: lightcoral;
    }

    .post-body {
      line-height: 2;
      width: 850px;
      margin: 0 auto;
    }


    /*  */
    ul.nav {

      position: absolute;
      display: block; 
      left: 0;
      right: 0;
      z-index: 2;
    }
    .highlight-title {
      position: absolute;
      display: block; 
      left: 0;
      right: 0;
      background: #f3f3f3;
      z-index: 1;
      border-left: 2px solid #009A61;
      -moz-transition: all .2s ease;
      -o-transition: all .2s ease;
      -webkit-transition: all .2s ease;
      transition: all .2s ease;
    }
  </style>
</head>

<body>
  <div class="post-toc-content">
    <div class="highlight-title" style="display: block; top: 54px; height: 27px;"></div>
    <ul class="nav">
      <li class="nav-item nav-level-4">
        <a class="nav-link" href="#qimage-win">
          <span class="nav-number">1.</span>
          <span class="nav-text">qimage-win</span>
        </a>
      </li>
      <li class="nav-item nav-level-4">
        <a class="nav-link" href="#cmder">
          <span class="nav-number">2.</span>
          <span class="nav-text">cmder</span>
        </a>
      </li>
      <li class="nav-item nav-level-4">
        <a class="nav-link" href="#clover">
          <span class="nav-number">3.</span>
          <span class="nav-text">clover</span>
        </a>
      </li>
      <li class="nav-item nav-level-4">
        <a class="nav-link" href="#everything">
          <span class="nav-number">4.</span>
          <span class="nav-text">everything</span>
        </a>
      </li>
      <li class="nav-item nav-level-4">
        <a class="nav-link" href="#FastStone-Capture">
          <span class="nav-number">5.</span>
          <span class="nav-text">FastStone Capture</span>
        </a>
      </li>
      <li class="nav-item nav-level-4">
        <a class="nav-link" href="#autohotkey">
          <span class="nav-number">6.</span>
          <span class="nav-text">autohotkey</span>
        </a>
      </li>
      <li class="nav-item nav-level-4">
        <a class="nav-link" href="#BaiduPanDownloadWinform">
          <span class="nav-number">7.</span>
          <span class="nav-text">BaiduPanDownloadWinform</span>
        </a>
      </li>
      <li class="nav-item nav-level-4">
        <a class="nav-link" href="#未完待续……">
          <span class="nav-number">9.</span>
          <span class="nav-text">未完待续……</span>
        </a>
      </li>
    </ul>
  </div>
  <div class="post-body" itemprop="articleBody">
    <h4 id="qimage-win">
      <a href="#qimage-win" class="headerlink" title="qimage-win"></a>qimage-win</h4>
    <ul>
      <li>地址：
        <a href="https://github.com/jiwenxing/qiniu-image-tool-win/releases" target="_blank" rel="noopener">https://github.com/jiwenxing/qiniu-image-tool-win/releases</a>
      </li>
      <li>简介：windows版本markdown一键贴图工具，支持本地文件、截图、网络图片一键上传七牛云并返回图片引用，让markdown中贴图变成一种享受。</li>
      <li>人生若只如初见，何事秋风悲画扇。 </li>
      <li>等闲变却故人心，却道故人心易变。</li>
      <li>骊山语罢清宵半，泪雨霖铃终不怨。 </li>
      <li>何如薄幸锦衣郎，比翼连枝当日愿。</li>
    </ul>
    <h4 id="cmder">
      <a href="#cmder" class="headerlink" title="cmder"></a>cmder</h4>
    <ul>
      <li>地址：
        <a href="http://cmder.net/" target="_blank" rel="noopener">http://cmder.net/</a>
      </li>
      <li>简介：</li>
      <li>人生若只如初见，何事秋风悲画扇。 </li>
      <li>等闲变却故人心，却道故人心易变。</li>
      <li>骊山语罢清宵半，泪雨霖铃终不怨。 </li>
      <li>何如薄幸锦衣郎，比翼连枝当日愿。</li>
    </ul>
    <h4 id="clover">
      <a href="#clover" class="headerlink" title="clover"></a>clover</h4>
    <ul>
      <li>地址：
        <a href="http://cn.ejie.me/" target="_blank" rel="noopener">http://cn.ejie.me/</a>
      </li>
      <li>简介：Clover 是 Windows Explorer 资源管理器的一个扩展，为其增加类似谷歌 Chrome 浏览器的多标签页功能。</li>
      <li>人生若只如初见，何事秋风悲画扇。 </li>
      <li>等闲变却故人心，却道故人心易变。</li>
      <li>骊山语罢清宵半，泪雨霖铃终不怨。 </li>
      <li>何如薄幸锦衣郎，比翼连枝当日愿。</li>
    </ul>
    <h4 id="everything">
      <a href="#everything" class="headerlink" title="everything"></a>everything</h4>
    <ul>
      <li>地址：
        <a href="http://www.voidtools.com/" target="_blank" rel="noopener">http://www.voidtools.com/</a>
      </li>
      <li>简介：Locate files and folders by name instantly.</li>
      <li>人生若只如初见，何事秋风悲画扇。 </li>
      <li>等闲变却故人心，却道故人心易变。</li>
      <li>骊山语罢清宵半，泪雨霖铃终不怨。 </li>
      <li>何如薄幸锦衣郎，比翼连枝当日愿。</li>
    </ul>
    <h4 id="FastStone-Capture">
      <a href="#FastStone-Capture" class="headerlink" title="FastStone Capture"></a>FastStone Capture</h4>
    <ul>
      <li>地址：
        <a href="https://faststone-capture.en.softonic.com/" target="_blank" rel="noopener">https://faststone-capture.en.softonic.com/</a>
      </li>
      <li>简介：Image viewer, editor and screen capture</li>
      <li>人生若只如初见，何事秋风悲画扇。 </li>
      <li>等闲变却故人心，却道故人心易变。</li>
      <li>骊山语罢清宵半，泪雨霖铃终不怨。 </li>
      <li>何如薄幸锦衣郎，比翼连枝当日愿。</li>
    </ul>
    <h4 id="autohotkey">
      <a href="#autohotkey" class="headerlink" title="autohotkey"></a>autohotkey</h4>
    <ul>
      <li>地址：
        <a href="https://autohotkey.com/" target="_blank" rel="noopener">https://autohotkey.com/</a>
      </li>
      <li>简介：Powerful. Easy to learn. The ultimate automation scripting language for Windows.</li>
      <li>人生若只如初见，何事秋风悲画扇。 </li>
      <li>等闲变却故人心，却道故人心易变。</li>
      <li>骊山语罢清宵半，泪雨霖铃终不怨。 </li>
      <li>何如薄幸锦衣郎，比翼连枝当日愿。</li>
    </ul>
    <h4 id="BaiduPanDownloadWinform">
      <a href="#BaiduPanDownloadWinform" class="headerlink" title="BaiduPanDownloadWinform"></a>BaiduPanDownloadWinform</h4>
    <ul>
      <li>地址：
        <a href="https://github.com/Accelerider/BaiduPanDownloadWinform/releases" target="_blank" rel="noopener">https://github.com/Accelerider/BaiduPanDownloadWinform/releases</a>
      </li>
      <li>简介：百度网盘不限速下载工具
        <li>人生若只如初见，何事秋风悲画扇。 </li>
        <li>等闲变却故人心，却道故人心易变。</li>
        <li>骊山语罢清宵半，泪雨霖铃终不怨。 </li>
        <li>何如薄幸锦衣郎，比翼连枝当日愿。</li>
        <h4 id="Chrome-插件：cVim">
          <a href="#Chrome-插件：cVim" class="headerlink" title="Chrome 插件：cVim"></a>Chrome 插件：cVim</h4>
      </li>
    </ul>
    <h4 id="未完待续……">
    <a href="#未完待续……" class="headerlink" title="未完待续……"></a>未完待续……</h4>
    <div class="placeholder">占位符</div>

  </div>

  <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
  <script>
    setActiveClass();

    $(window).on('scroll', setActiveClass)

    function setActiveClass () {
      var array = [];
      var activeClassName = 'active';
      var $container = $('.post-toc-content'); // toc 外层容器
      var $alink = $('.nav-link'); // toc 中的 a 链接

      var $hl = $('.highlight-title'); // 高亮块

      $alink.each(function () {
        var id = $(this).attr('href');
        // 元素距离可视区域顶部的距离 = 元素相对于 document 的垂直位置 - document 整个文档被上卷的高度
        var top = $(id).offset().top - $(document).scrollTop();
        if (top >= 0) array.push({id: id, top: top});
      });

      $('.' + activeClassName).removeClass(activeClassName);

      var $currALink = $(".post-toc-content [href='" + array[ 0 ] .id + "']");

      $currALink.parent().addClass(activeClassName);

      var height = $currALink.parent().height();
      var top = $currALink.parent().offset().top - $container.offset().top;
      $hl.css({ top: top, height: height});
    }
  </script>

</body>

</html>
